package com.ph.irp.base.measure.service;

import java.util.List;

import com.ph.irp.dto.MeasureDTO;
import com.ph.irp.model.PBaseMeasureunit;

/**
 * 计量单位
 * 
 * @author weide
 * @version 1.0 <br>
 * Copyright (C), 2009, SongYandong <br>
 * This program is protected by copyright laws. <br>
 * Program Name: PBaseMeasureUnitService.java<br>
 * Date:2009-11-3
 */
public interface PBaseMeasureUnitService {
	
	public void addMeasureUnit(PBaseMeasureunit model)throws Throwable;
	
	public void updateMeasureUnit(PBaseMeasureunit model)throws Throwable;
	
	public void deleteMeasureUnit(Object[] id) throws Throwable;
	
	public List<MeasureDTO> getMeasureUnitAll() throws Throwable;
	
	public PBaseMeasureunit getMeasureUnitById(int id)throws Throwable;
	
	public List<MeasureDTO>  getMeasureUnitByCode(String code)throws Throwable;
	
	public List<MeasureDTO>  getMeasureUnitByName(String name)throws Throwable;
	
	public PBaseMeasureunit  getMeasureUnitByUnitName(String name)throws Throwable;
	
	public List<MeasureDTO>  getMeasureUnitByNameAndCode(String name,String code)throws Throwable;
	
	public List<MeasureDTO> getMeasureUnitByGroupId(PBaseMeasureunit model)throws Throwable;
	
	public PBaseMeasureunit getDefaultMeasureUnitByGroupId(int id)throws Throwable;

	
	public PBaseMeasureunit getMeasureUnitForSellPrice(String name) throws Throwable;
}
